package com.tql.kingdee.response;

import java.util.Objects;

public class MaterialResponse {
    /**
     * FMATERIALID,fnumber,fname,FSpecification,FBaseUnitId.FNumber,FBaseUnitId.FName,
     * FMnemonicCode,FMaterialGroup.fnumber,FMaterialGroup.fname,FApproveDate
     */
    private Long FMATERIALID;
    private String fnumber;
    private String fname;
    private String FSpecification;
    private String FBaseUnitIdFNumber;

    private String FBaseUnitIdFName;

    private String FMnemonicCode;

    private String FMaterialGroupfnumber;

    private String FMaterialGroupfname;

    private String FApproveDate;


    public Long getFMATERIALID() {
        return FMATERIALID;
    }

    public void setFMATERIALID(Long FMATERIALID) {
        this.FMATERIALID = FMATERIALID;
    }

    public String getFnumber() {
        return fnumber;
    }

    public void setFnumber(String fnumber) {
        this.fnumber = fnumber;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFSpecification() {
        return FSpecification;
    }

    public void setFSpecification(String FSpecification) {
        this.FSpecification = FSpecification;
    }

    public String getFBaseUnitIdFNumber() {
        return FBaseUnitIdFNumber;
    }

    public void setFBaseUnitIdFNumber(String FBaseUnitIdFNumber) {
        this.FBaseUnitIdFNumber = FBaseUnitIdFNumber;
    }

    public String getFBaseUnitIdFName() {
        return FBaseUnitIdFName;
    }

    public void setFBaseUnitIdFName(String FBaseUnitIdFName) {
        this.FBaseUnitIdFName = FBaseUnitIdFName;
    }

    public String getFMnemonicCode() {
        return FMnemonicCode;
    }

    public void setFMnemonicCode(String FMnemonicCode) {
        this.FMnemonicCode = FMnemonicCode;
    }

    public String getFMaterialGroupfnumber() {
        return FMaterialGroupfnumber;
    }

    public void setFMaterialGroupfnumber(String FMaterialGroupfnumber) {
        this.FMaterialGroupfnumber = FMaterialGroupfnumber;
    }

    public String getFMaterialGroupfname() {
        return FMaterialGroupfname;
    }

    public void setFMaterialGroupfname(String FMaterialGroupfname) {
        this.FMaterialGroupfname = FMaterialGroupfname;
    }

    public String getFApproveDate() {
        return FApproveDate;
    }

    public void setFApproveDate(String FApproveDate) {
        this.FApproveDate = FApproveDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MaterialResponse that = (MaterialResponse) o;
        return Objects.equals(FMATERIALID, that.FMATERIALID) && Objects.equals(fnumber, that.fnumber) && Objects.equals(fname, that.fname) && Objects.equals(FSpecification, that.FSpecification) && Objects.equals(FBaseUnitIdFNumber, that.FBaseUnitIdFNumber) && Objects.equals(FBaseUnitIdFName, that.FBaseUnitIdFName) && Objects.equals(FMnemonicCode, that.FMnemonicCode) && Objects.equals(FMaterialGroupfnumber, that.FMaterialGroupfnumber) && Objects.equals(FMaterialGroupfname, that.FMaterialGroupfname) && Objects.equals(FApproveDate, that.FApproveDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(FMATERIALID, fnumber, fname, FSpecification, FBaseUnitIdFNumber, FBaseUnitIdFName, FMnemonicCode, FMaterialGroupfnumber, FMaterialGroupfname, FApproveDate);
    }

    @Override
    public String toString() {
        return "MaterialResponse{" +
                "FMATERIALID=" + FMATERIALID +
                ", fnumber='" + fnumber + '\'' +
                ", fname='" + fname + '\'' +
                ", FSpecification='" + FSpecification + '\'' +
                ", FBaseUnitIdFNumber='" + FBaseUnitIdFNumber + '\'' +
                ", FBaseUnitIdFName='" + FBaseUnitIdFName + '\'' +
                ", FMnemonicCode='" + FMnemonicCode + '\'' +
                ", FMaterialGroupfnumber='" + FMaterialGroupfnumber + '\'' +
                ", FMaterialGroupfname='" + FMaterialGroupfname + '\'' +
                ", FApproveDate='" + FApproveDate + '\'' +
                '}';
    }
}
